package com.abaaba.project2.controller.wxcontroller;


import com.abaaba.project2.bean.vo.wx.WXGoodsShowListVO;
import com.abaaba.project2.bean.vo.wx.WXHomeIndexGoodsAndAllVO;
import com.abaaba.project2.service.wx.WXGoodsShowListService;
import com.abaaba.project2.service.wx.WXHomeIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*写完自闭*/
@RestController
@RequestMapping("/wx/home")
public class WXHomeIndexListController {

    @Autowired
    WXHomeIndexService wxHomeIndexService;

    @RequestMapping("/index")
    public WXHomeIndexGoodsAndAllVO wxHomeIndexShow()
    {
        WXHomeIndexGoodsAndAllVO.DataBean dataBean = wxHomeIndexService.wxHomeIndexSearchAllDataBaseTable();
        WXHomeIndexGoodsAndAllVO wxHomeIndexGoodsAndAllVO = new WXHomeIndexGoodsAndAllVO(0,dataBean,"成功");

        return wxHomeIndexGoodsAndAllVO;
    }
}
